package com.testException;

import java.sql.SQLException;

import org.apache.log4j.Logger;
import org.junit.Test;


/**
 * @author laijianbo
 * 2014-7-4
 */
public class Test22 {
	private static Logger logger = Logger.getLogger(Test.class);
	@Test
	public void test(){
//		logger.error("消息内容={}", def.toString());
//		logger.error("异常信息={}", StringUtil.getStackTrace(e));
		try {
			
		} catch (Exception e) {
			// TODO: handle exception
			try {
				throw new SQLException("功能处理出现异常!" + e.getMessage(), e);
			} catch (SQLException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
		}
		
	}
}